package com.ej.web.controller.ej.mis;

import com.aliyun.dysmsapi20170525.models.SendSmsRequest;
import com.ej.common.client.AliYunSmsClient;
import com.ej.common.core.controller.BaseController;
import com.ej.common.core.page.TableDataInfo;
import com.ej.busi.domain.EjCourse;
import com.ej.busi.service.IEjCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 课程表 信息操作处理
 *
 * @author ej
 */
@RestController
@RequestMapping("/ej/mis/course")
public class EjCourseController  extends BaseController {

    @Autowired
    private IEjCourseService courseService;

    /**
     * 获取课程列表
     */
//    @PreAuthorize("@ss.hasPermi('system:config:list')")
    @GetMapping("/list")
    public TableDataInfo list()
    {
        startPage();
        List<EjCourse> list = courseService.list();
        return getDataTable(list);
    }
}
